﻿using System;

namespace Crow.Library.Foundation.Exceptions
{
    /// <summary>
    /// Represents the conversion exception.
    /// </summary>
    [Serializable]
    public class ConversionException : Exception
    {
        /// <summary>
        /// Initializes a new instance of <see cref="ConversionException"/>.
        /// </summary>
        public ConversionException()
        {
        }

        /// <summary>
        /// Initializes a new instance of <see cref="ConversionException"/> with message.
        /// </summary>
        /// <param name="message"></param>
        public ConversionException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of <see cref="ConversionException"/> with the message and inner exception.
        /// </summary>
        /// <param name="message"></param>
        /// <param name="inner"></param>
        public ConversionException(string message, Exception inner)
            : base(message, inner)
        {
        }
    }
}